package com.by.bean;



import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 订单信息;
 * @author : http://www.chiner.pro
 * @date : 2025-4-11
 */
@Data
@ApiModel(value = "订单信息",description = "")
@TableName("order")
public class Order{

    /** 订单ID */
    @ApiModelProperty(name = "订单ID",notes = "")
    @TableId
    private int orderId;
    /** 创建时间 */
    @ApiModelProperty(name = "创建时间",notes = "")
    private Date createTime ;
    /** 更新时间 */
    @ApiModelProperty(name = "更新时间",notes = "")
    private Date updateTime ;
    /** 店铺id */
    @ApiModelProperty(name = "店铺id",notes = "")
    private int shopId ;
    /** 用户ID */
    @ApiModelProperty(name = "用户ID",notes = "")
    private int userId ;
    /** 配送类型：无需快递 */
    @ApiModelProperty(name = "配送类型：无需快递",notes = "")
    private int deliveryType ;
    /** 店铺名称 */
    @ApiModelProperty(name = "店铺名称",notes = "")
    private String shopName ;
    /** 总值 */
    @ApiModelProperty(name = "总值",notes = "")
    private int total ;
    /** 订单状态 1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:失败 */
    @ApiModelProperty(name = "订单状态 1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:失败",notes = "")
    private int status ;
    /** 订单商品总数 */
    @ApiModelProperty(name = "订单商品总数",notes = "")
    private Integer allCount ;
    /** 付款时间 */
    @ApiModelProperty(name = "付款时间",notes = "")
    private Date payTime ;
    /** 发货时间 */
    @ApiModelProperty(name = "发货时间",notes = "")
    private Date deliveryTime ;
    /** 完成时间 */
    @ApiModelProperty(name = "完成时间",notes = "")
    private Date finallyTime ;
    /** 结算时间 */
    @ApiModelProperty(name = "结算时间",notes = "")
    private Date settledTime ;
    /** 取消时间 */
    @ApiModelProperty(name = "取消时间",notes = "")
    private Date cancelTime ;
    /** 是否已支付，1.已支付0.未支付 */
    @ApiModelProperty(name = "是否已支付，1.已支付0.未支付",notes = "")
    private int isPayed ;
    /** 订单关闭原因 1-超时未支付 4-买家取消 15-已通过货到付款交易 */
    @ApiModelProperty(name = "订单关闭原因 1-超时未支付 4-买家取消 15-已通过货到付款交易",notes = "")
    private int closeType ;
    /** 用户订单删除状态，0：没有删除， 1：回收站， 2：永久删除 */
    @ApiModelProperty(name = "用户订单删除状态，0：没有删除， 1：回收站， 2：永久删除",notes = "")
    private int deleteStatus ;
    /** 订单版本号，每处理一次订单，版本号+1 */
    @ApiModelProperty(name = "订单版本号，每处理一次订单，版本号+1",notes = "")
    private Integer version ;
    /** 用户订单地址id */
    @ApiModelProperty(name = "用户订单地址id",notes = "")
    private int orderAddrId ;



    List<OrderItem> orderItems;


    }
